import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);

const router = new VueRouter({
  mode: 'history',
  routes: [
    { path: '/', component: () => import('@/components/pages/Home') },
    {
      path: '/category',
      component: () => import('@/components/pages/Category'),
    },
    {
      path: '/oauth/redirect',
      component: () => import('@/components/pages/Redirect'),
    },
    {
      path: '/admin',
      component: () => import('@/components/pages/Admin'),
    },
    {
      path: '/info',
      name: 'info',
      component: () => import('@/components/pages/Info'),
    },
  ],
});
export default router;
